package com.dmooo.yxmmerchant.view.contract;

import com.common.mvpbase.BaseView;
import com.common.net.listener.HttpOnNextListener;

public class ChangePhonePwdContract {
    public interface  ChangeView extends BaseView{
        void sendOldPhoneSuccess();
        void sendNewPhoneSuccess();
        void changePhoneSuccess();
        void changePwdSuccess();
        void resetSccess();
    }
    public interface ChangeMdl{
        void sendOldPhone(String token, HttpOnNextListener listener);
        void sendNewPhone(String phone,HttpOnNextListener listener);
        void changePwd(String token,String oldPwd,String newPwd,String newPwd2,HttpOnNextListener listener);

        //        token
//old_code
//phone
//code
        void changePhone(String token,String old_code,String phone,String code,HttpOnNextListener listener);
        void getResetPhoneCode(String phone,HttpOnNextListener listener);
        void resetPhonePwd(String phone,String code,String pwd,HttpOnNextListener listener);
    }
    public interface ChangePtr{
        void sendOldPhone(String token);
        void sendNewPhone(String phone);
        //        token
//old_code
//phone
//code
        void changePhone(String token,String old_code,String phone,String code);
        void changePwd(String token,String oldPwd,String newPwd,String newPwd2);
        void getResetPhoneCode(String phone);
        void resetPhonePwd(String phone,String code,String pwd);
    }
}
